package com.zuikaku.nettychat.pojo;

import java.util.Date;

public class Chat {
    private Integer chatId;

    private Integer fkSenderId;

    private Integer fkReceiverId;

    private String type;

    private Date updateTime;

    private Date createTime;

    private String historyChat;

    public Chat(Integer chatId, Integer fkSenderId, Integer fkReceiverId, String type, Date updateTime, Date createTime, String historyChat) {
        this.chatId = chatId;
        this.fkSenderId = fkSenderId;
        this.fkReceiverId = fkReceiverId;
        this.type = type;
        this.updateTime = updateTime;
        this.createTime = createTime;
        this.historyChat = historyChat;
    }

    public Chat() {
        super();
    }

    public Integer getChatId() {
        return chatId;
    }

    public void setChatId(Integer chatId) {
        this.chatId = chatId;
    }

    public Integer getFkSenderId() {
        return fkSenderId;
    }

    public void setFkSenderId(Integer fkSenderId) {
        this.fkSenderId = fkSenderId;
    }

    public Integer getFkReceiverId() {
        return fkReceiverId;
    }

    public void setFkReceiverId(Integer fkReceiverId) {
        this.fkReceiverId = fkReceiverId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getHistoryChat() {
        return historyChat;
    }

    public void setHistoryChat(String historyChat) {
        this.historyChat = historyChat == null ? null : historyChat.trim();
    }

    @Override
    public String toString() {
        return "Chat{" +
                "chatId=" + chatId +
                ", fkSenderId=" + fkSenderId +
                ", fkReceiverId=" + fkReceiverId +
                ", type='" + type + '\'' +
                ", updateTime=" + updateTime +
                ", createTime=" + createTime +
                ", historyChat='" + historyChat + '\'' +
                '}';
    }
}